<template>
    <!-- 实名认证 -->
    <pagebox class="certification" shownav istabbox isback navtitle="实名认证">
        <!-- 内容盒子 -->
        <view class="form" slot="cent">
            <view class="certification-info">
                <image src="/static/img/mine/certification-avatar.png" class="avatar"></image>
                <view class="tip">
                    温馨提示
                </view>
                <view class="tip-content">
                    享受政务服务 实名认证更方便
                </view>
            </view>
            <!-- form begin -->
            <uni-forms label-position="top">
                <uni-forms-item label="真实姓名" name="name" required>
                    <uni-easyinput type="text" placeholder="请输入" />
                </uni-forms-item>
                <uni-forms-item label="证件类型" name="type" required>
                    <uni-data-select placeholder="请选择"></uni-data-select>
                </uni-forms-item>
                <uni-forms-item label="身份证号" name="name" required>
                    <uni-easyinput type="text" placeholder="请输入" />
                </uni-forms-item>
            </uni-forms>
            <!-- form end -->
            <!-- form-submit begin -->
            <view class="footer">
                <button type="button" @tap="openFaceRecognition">去认证</button>
            </view>
            <!-- form-submit end -->
        </view>
    </pagebox>
</template>

<script>
export default {
    data() {
        return {
        }
    },
    async onLoad() {
    },
    methods: {
        openFaceRecognition() {
            uni.navigateTo({
                url: '/pages/committee/mine/face-recognition'
            })
        },
    }
}
</script>

<style lang="scss" scoped>
.certification {
    background-color: $bg-color-white;
}

.form {
    width: 100%;
    margin: 30rpx 0;
    padding: 30rpx;
    background-color: $bg-color-white;
    border-radius: $border-radius-lg;

    .certification-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        // justify-content: center;

        view {
            padding: 20rpx 0;
        }

        .avatar {
            width: 200rpx;
            height: 200rpx;
            border-radius: $border-radius-circle;
            background: #e6e6e6;
        }

        .tip {
            font-size: $font-size-extra-lg;
        }

        .tip-content {
            color: #999999;
        }
    }

    .uni-forms-item {
        margin-bottom: 10rpx !important;
    }
}

.footer {
    height: 120rpx;
    padding: 10rpx 20rpx;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFFFF;
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);

    button {
        width: 100%;
        height: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50rpx;
        color: #FFFFFF !important;
        background: #ad2325 !important;
    }
}
</style>
